package com.gp.learn.ssm.base.system.service.impl;

import com.gp.learn.ssm.base.core.security.model.OpenAuthority;
import com.gp.learn.ssm.base.system.entity.BaseAuthorityUser;
import com.gp.learn.ssm.base.system.mapper.BaseAuthorityUserMapper;
import com.gp.learn.ssm.base.system.service.BaseAuthorityUserService;
import com.gp.learn.ssm.base.core.mybaits.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统权限-用户关联 服务实现类
 * @author gp
 * @since 2020-08-10
 */
@Service
public class BaseAuthorityUserServiceImpl extends BaseServiceImpl<BaseAuthorityUserMapper, BaseAuthorityUser> implements BaseAuthorityUserService {

    @Override
    public List<OpenAuthority> selectAuthorityByUser(Long userId) {
        return this.baseMapper.selectAuthorityByUser(userId);
    }
}
